package com.itheima.test6;

public class Test6Lambda {
    public static void main(String[] args) {
        userInter((a, b) -> a + b);
    }

    public static void userInter(Inter inter) {
        double result = inter.method(12.3, 22.3);
        System.out.println(result);
    }
}

interface Inter {
    double method(double a, double b);
}
